package tk.winshu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import tk.winshu.common.util.ApplicationContextUtil;
import tk.winshu.starter.EnableWinshuAutoConfiguration;
import tk.winshu.starter.WinshuConfiguration;

/**
 * @author Kevin
 * @since 2019/03/30.
 */
@EnableWinshuAutoConfiguration
@SpringBootApplication
public class AutoConfigureApplication {

    public static void main(String[] args) {
        SpringApplication.run(AutoConfigureApplication.class);
        ApplicationContextUtil.check();

        WinshuConfiguration configuration = ApplicationContextUtil.getBean(WinshuConfiguration.class);
        System.out.println(configuration.getHost());
    }
}
